package gof.com.yew.observer;

import java.util.Observable;
import java.util.Observer;

public class ObserverB implements Observer{
	
	private String state;
	
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	@Override
	public void update(Observable o, Object arg) {
		this.state = ((TargetObject)o).getState();
	}

}
